package gui.popupmenu;

import gui.form.MainForm;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import org.ini4j.Profile;
import qviewer.ServiceManager;
import util.MyIniSection;

/**
 *
 * @author SUCCESS\quannguyen
 */
public class AlbumPopupMenu extends JPopupMenu {

    JMenuItem addNew;

    public AlbumPopupMenu() {
        addNew = new JMenuItem("Delete");
        addNew.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {
                ServiceManager.getInstance().getMainForm().deleteAlbum();
            }
        });
        add(addNew);
    }
}
